package light.head.model;

import java.io.Serializable;

/**
 * 文档公开权限
 *
 */
public class DocumentCompetencePK implements Serializable{

	
	private static final long serialVersionUID = 1L;
	
	private Integer dCode;			
	private Byte pType;				// 公开权限（1、全部公开  2、指定公开）		
	private Integer mc;				//指定公开（1、指定机构  2、指定角色 3、公开用户  4、不公开）
	
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof DocumentCompetencePK)) {  
            return false;  
        }  
  
        final DocumentCompetencePK aho = (DocumentCompetencePK) obj;
        if (null == dCode || dCode.intValue() != aho.getdCode().intValue()) {
            return false;
        }
        if (null == pType || pType.intValue() != aho.getpType().intValue()) {
            return false;
        }
        if (null == mc || mc.intValue() != aho.getMc().intValue()) {
            return false;
        }
        return true;  
	}
	@Override
	public int hashCode() {
		int result;  
        result = dCode.hashCode();  
        result = 29 * result + pType.hashCode(); 
        result = 29 * result + mc.hashCode();
        return result;  
	}
	
	
	
	
	
	
	
	
	
	
	public Integer getdCode() {
		return dCode;
	}
	public void setdCode(Integer dCode) {
		this.dCode = dCode;
	}
	public Byte getpType() {
		return pType;
	}
	public void setpType(Byte pType) {
		this.pType = pType;
	}
	public Integer getMc() {
		return mc;
	}
	public void setMc(Integer mc) {
		this.mc = mc;
	}
	

}
